package com.ztjava.core.bean;

import javax.sql.DataSource;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

public class Database {

	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public DataSource getDataSource() {
		return dataSource;
	}
	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}
	public ActiveRecordPlugin getActiveRecordPlugin() {
		return activeRecordPlugin;
	}
	public void setActiveRecordPlugin(ActiveRecordPlugin activeRecordPlugin) {
		this.activeRecordPlugin = activeRecordPlugin;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Database(String name,String type,DataSource dataSource,
			ActiveRecordPlugin activeRecordPlugin,String dbName){
		this.name = name;
		this.type = type;
		this.dataSource = dataSource;
		this.activeRecordPlugin = activeRecordPlugin;
		this.dbName = dbName;
	}
	
	private String dbName;
	private DataSource dataSource;
	private ActiveRecordPlugin activeRecordPlugin; 
	private String type;
	private String name;
}
